{extends file='layout/admin.html'}

{block name='title'}关键词修改{/block}

{block name='content'}


<h1>{if $type=='1'}二级{/if}关键词修改</h1>
<h2 class="pb10"></h2>
<div class="clearfix sub_nav b_border">
	<span class="btn fr"><a href="#" class="save">保存</a></span>
</div>
<form action="admin/{if $type=='1'}filt_two_key{else}filt_key{/if}/update" method="post" accept-charset="utf-8">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="content_table">
	<thead>
		<tr style="height: 20px">
			<th class="left"></th>
			<th class="right"></th>
		</tr>
	</thead>
	<tbody>
		<input type="hidden" name="id" value="{$msg.id}" />
		<tr>
			<td style="width: 30%" class="left_label large tar">{if $type=='1'}二级{/if}关键词</td>
			<td class="right_label"><input type="text" class="input_text w290" name="t_name" value="{$msg.name}"/></td>
		</tr>
		
	</tbody>
</table>
</form>
<div class="clearfix sub_nav t_border">
	<span class="btn fr"><a href="#" class="save">保存</a></span>
</div>
<script type="text/javascript" charset="utf-8">
var user_name = $('input[name=t_name]');

dialog_title = 'My Account';


$('a.save').click(function(){

  if (!user_name.val()) {
    show_msg('关键词不能为空!', function(){
      user_name.focus();
    });

    return false;
  }
  
  $('form').submit();

  return false;
});

</script>
{/block}
